package Dao;


import Model.Money;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface StudentDao {
    @Select("select * from jingqian")
    List<Money> findAll();
    @Insert("insert into jingqian(Id,name, money, time, balance) values (default,#{name}, #{money}, #{time}, #{balance})")
    void saveStudent(Money money);

    @Select("select balance from jingqian order by id desc limit 1")
     public Double select();
//    @Delete("delete from student where id=#{id}")
//    void deleteStudent(int id);
//    @Update("update student set name=#{name},sex=#{sex},age=#{age},major=#{major},time=#{time}where id=#{id}")
//    void updateStudent(Student student);
}
